import { lazy } from 'react';

const routes = [
    {
      path: "/login",
      component: lazy(() => import('@/view/Login')),
    },
    {
      path: "/dynamic",
      exact: true,
      component: lazy(() => import('@/components/Childen')),
      title: "党建动态",
      children: [
        {
          path: '/dynamic/audit',
          component: lazy(() => import('@/components/Childen')),
          title: '风采管理',
          breadcrumbName: '稿件审核管理',
        },
        {
          path: '/dynamic/article',
          component: lazy(() => import('@/components/Childen')),
          title: '风采管理',
          breadcrumbName: '发布文章管理',
        },
        {
          path: '/dynamic/like',
          component: lazy(() => import('@/components/About')),
          title: '风采管理',
          breadcrumbName: '点赞管理',
        },
        {
          path: '/dynamic/issue',
          component: lazy(() => import('@/components/About')),
          title: '党校培训',
          breadcrumbName: '发布文章',
        },
        {
          path: '/dynamic/organization',
          component: lazy(() => import('@/components/About')),
          title: '组织框架',
          breadcrumbName: '组织框架'
        }
      ]
    },
    {
      path: "/service",
      exact: true,
      component: lazy(() => import('@/components/Childen')),
      title: "党建服务",
      children: [
        {
          path: '/service/volunteer',
          component: lazy(() => import('@/components/About')),
          title: '志愿活动管理',
          breadcrumbName: '志愿者活动审核管理',
        },
        {
          path: '/service/sign',
          component: lazy(() => import('@/components/About')),
          title: '志愿活动管理',
          breadcrumbName: '活动报名管理',
        },
        {
          path: '/service/lesson',
          component: lazy(() => import('@/components/About')),
          title: '三会一课',
          breadcrumbName: '三会一课管理',
        },
        {
          path: '/service/summary',
          component: lazy(() => import('@/components/About')),
          title: '三会一课',
          breadcrumbName: '纪要管理',
        },
        {
          path: '/service/message',
          component: lazy(() => import('@/components/About')),
          title: '管理留言',
          breadcrumbName: '管理留言',
        },
        {
          path: '/service/vote',
          component: lazy(() => import('@/components/About')),
          title: '投票调查',
          breadcrumbName: '投票调查',
        },
        {
          path: '/service/organization',
          component: lazy(() => import('@/components/About')),
          title: '转组织关系',
          breadcrumbName: '转组织关系',
        },
        {
          path: '/service/theme',
          component: lazy(() => import('@/components/About')),
          title: '主题党日管理',
          breadcrumbName: '主题党日管理',
        },
      ]
    },
    {
      path: "/study",
      exact: true,
      component: lazy(() => import('@/components/Childen')),
      title: "学习平台",
      children: [
        {
          path: '/study/problem',
          component: lazy(() => import('@/components/Childen')),
          title: '在线答题',
          breadcrumbName: '问题管理',
        },
        {
          path: '/study/record',
          component: lazy(() => import('@/components/Childen')),
          title: '在线答题',
          breadcrumbName: '答题记录管理',
        },
        {
          path: '/study/sort',
          component: lazy(() => import('@/components/Childen')),
          title: '在线答题',
          breadcrumbName: '问题分类',
        },
        {
          path: '/study/libary',
          component: lazy(() => import('@/components/Childen')),
          title: '在线答题',
          breadcrumbName: '题库管理',
        },
      ]
    },
    {
      path: "/manage",
      exact: true,
      component: lazy(() => import('@/components/Childen')),
      title: "基础管理",
      children: [
        {
          path: '/manage/part',
          component: lazy(() => import('@/view/Manage/Part')),
          title: '党员管理',
          breadcrumbName: '党员管理',
        },
        {
          path: '/manage/user',
          component: lazy(() => import('@/view/Manage/User')),
          title: '用户管理',
          breadcrumbName: '用户管理',
        },
        {
          path: '/manage/certification',
          component: lazy(() => import('@/components/Childen')),
          title: '认证管理',
          breadcrumbName: '认证管理',
        },
        {
          path: '/manage/position',
          component: lazy(() => import('@/components/About')),
          title: '职务管理',
          breadcrumbName: '职务管理',
        },
        {
          path: '/manage/collage',
          component: lazy(() => import('@/components/About')),
          title: '学院管理',
          breadcrumbName: '学院管理',
        },
        {
          path: '/manage/announcement',
          component: lazy(() => import('@/components/About')),
          title: '系统公告',
          breadcrumbName: '系统公告',
        },
        {
          path: '/manage/log',
          component: lazy(() => import('@/components/About')),
          title: '操作日志',
          breadcrumbName: '操作日志',
        },
        {
          path: '/manage/account',
          component: lazy(() => import('@/components/About')),
          title: '后台账号管理',
          breadcrumbName: '后台账号管理',
        },
      ]
    },
  ];
  
  export default routes;